﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Eat//吃，父类
    {
        private string name;
        internal Iswim swim;
        internal Iclimb climb;
        public string Name{ get; set; }
        public Iswim Swim { get; set; }
        public Iclimb Climb { get; set; }
        public Eat(string name)
        {
            this.name = name;
        }
        public void have()
        {
            Console.WriteLine("我是{0}",name);
            Console.WriteLine("我会吃");
        }

    }
}
